'use strict';
define(function(require, exports, module) {

	function init(app) {
		app.config(function($stateProvider, $urlRouterProvider) {
			$stateProvider.state('login', {
				url: "/login",
				templateUrl: 'app/login/view/login.html',
				controller: function($scope) {
					require.async("./js/login", function(login) {
						login.controller(app, $scope);

						$scope.$apply();
					});
				}
			});

		});
	}

	exports.init = init;
});